const express = require("express");

const router = express.Router();

// 注册路由
router.get("/", (req, res) => {
  res.send("Home页面");
});

router.get("/api", (req, res) => {
  res.send({
    data: "Home页面的数据",
    name: "lucy",
  });
});

// 导出
module.exports = router;
